LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := game_shared

LOCAL_MODULE_FILENAME := libgame

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/AppDelegate.cpp \
				   ../../Classes/Cats/CatsManager.cpp \
				   ../../Classes/Cats/CatSpriteLoader.cpp \
				   ../../Classes/Cats/BaseCat.cpp \
				   ../../Classes/Cats/FatCat.cpp \
				   ../../Classes/Cats/OlympicCat.cpp \
				   ../../Classes/Cats/NinjaCat.cpp \
				   ../../Classes/Cats/WitchCat.cpp \
				   ../../Classes/Cats/PunkCat.cpp \
				   ../../Classes/Cats/BounceCat.cpp \
				   ../../Classes/Cats/CatStates/CatState.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Attack.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Flank.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Skill.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Chase.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Obstacle.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Injured.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Dying.cpp \
				   ../../Classes/Cats/CatStates/CatState_Base_Dead.cpp \
				   ../../Classes/Cats/CatStates/CatState_Olympic_Skill.cpp \
				   ../../Classes/Cats/CatStates/CatState_Ninja_Skill.cpp \
				   ../../Classes/Cats/CatStates/CatState_Witch_Skill.cpp \
				   ../../Classes/Cats/CatStates/CatState_Witch_Attack.cpp \
				   ../../Classes/Cats/CatStates/CatState_Punk_Skill.cpp \
				   ../../Classes/Cats/CatStates/Catstate_Bounce_Skill.cpp \
				   ../../Classes/Character/Character.cpp \
				   ../../Classes/Character/CharacterAI.cpp \
				   ../../Classes/Director/AIDirector.cpp \
				   ../../Classes/Director/PlayerPerformance.cpp \
				   ../../Classes/Director/DirectorLoader.cpp \
				   ../../Classes/Director/DifficultyFactors/SpawnDifficultyLoader.cpp \
				   ../../Classes/Director/DifficultyFactors/DifficultyFactor.cpp \
				   ../../Classes/Director/DifficultyFactors/CharacterSpeed.cpp \
				   ../../Classes/Director/DifficultyFactors/CharacterObstacle.cpp \
				   ../../Classes/Director/DifficultyFactors/CatSpeed.cpp \
				   ../../Classes/Director/DifficultyFactors/CatObstacle.cpp \
				   ../../Classes/Director/DifficultyFactors/SpawnSets.cpp \
				   ../../Classes/Modifier/GameModifier.cpp \
				   ../../Classes/Modifier/ModifierInstruction.cpp \
				   ../../Classes/Modifier/CharacterSpeedInstruction.cpp \
				   ../../Classes/Modifier/CharacterObstacleInstruction.cpp \
				   ../../Classes/Modifier/CatSpeedInstruction.cpp \
				   ../../Classes/Modifier/CatObstacleInstruction.cpp \
				   ../../Classes/Modifier/SpawnSetsInstruction.cpp \
				   ../../Classes/FlowController.cpp \
				   ../../Classes/Levels/CatSpawnScript.cpp \
				   ../../Classes/Levels/CatSpawnSet.cpp \
				   ../../Classes/Levels/Level.cpp \
				   ../../Classes/Levels/LevelLoader.cpp \
				   ../../Classes/Map/GameMap.cpp \
				   ../../Classes/Map/Obstacle.cpp \
				   ../../Classes/Supporting/CCBlade.cpp \
				   ../../Classes/Supporting/CCShake.cpp \
				   ../../Classes/Supporting/SoundLoader.cpp \
				   ../../Classes/Supporting/PlayerData.cpp \
				   ../../Classes/Supporting/TutorialLoader.cpp \
				   ../../Classes/Screens/BaseScreen.cpp \
				   ../../Classes/Screens/LevelSelectScreen.cpp \
				   ../../Classes/Screens/MainMenuScreen.cpp \
				   ../../Classes/Screens/SkillSelectScreen.cpp \
				   ../../Classes/GameManager.cpp \
				   ../../Classes/Skills/SkillsLoader.cpp \
				   ../../Classes/Skills/BaseSkill.cpp \
				   ../../Classes/Skills/SkillEarthquake.cpp \
				   ../../Classes/Skills/SkillHammer.cpp \
				   ../../Classes/Skills/SkillLightning.cpp \
				   ../../Classes/Skills/SkillMeteor.cpp \
				   ../../Classes/Skills/SkillTornado.cpp \
				   ../../Classes/Skills/SkillRain.cpp \
				   ../../Classes/TestClasses/Cats/CatsManager_test.cpp \
				   ../../Classes/TestClasses/Director/AIDirector_test.cpp \
				   ../../Classes/TestClasses/Director/PlayerPerformance_test.cpp \
				   ../../Classes/TestClasses/Director/DirectorLoader_test.cpp \
				   ../../Classes/TestClasses/Director/SpawnDifficultyLoader_test.cpp \
				   ../../Classes/TestClasses/Director/DifficultyFactor_test.cpp \
				   ../../Classes/TestClasses/Director/SpawnSets_test.cpp \
				   ../../Classes/TestClasses/Character/Character_test.cpp \
				   ../../Classes/TestClasses/GameManager_test.cpp \
				  UnitTestPP.cpp \
				  ../unittestpp-read-only/src/AssertException.cpp \
				  ../unittestpp-read-only/src/Checks.cpp \
				  ../unittestpp-read-only/src/CurrentTest.cpp \
				  ../unittestpp-read-only/src/DeferredTestReporter.cpp \
				  ../unittestpp-read-only/src/DeferredTestResult.cpp \
				  ../unittestpp-read-only/src/MemoryOutStream.cpp \
				  ../unittestpp-read-only/src/ReportAssert.cpp \
				  ../unittestpp-read-only/src/Test.cpp \
				  ../unittestpp-read-only/src/TestDetails.cpp \
				  ../unittestpp-read-only/src/TestList.cpp \
				  ../unittestpp-read-only/src/TestReporter.cpp \
				  ../unittestpp-read-only/src/TestReporterStdout.cpp \
				  ../unittestpp-read-only/src/TestResults.cpp \
				  ../unittestpp-read-only/src/TestRunner.cpp \
				  ../unittestpp-read-only/src/TimeConstraint.cpp \
				  ../unittestpp-read-only/src/XmlTestReporter.cpp \
				  ../unittestpp-read-only/src/Posix/SignalTranslator.cpp \
				  ../unittestpp-read-only/src/Posix/TimeHelpers.cpp \
				  ../unittestpp-read-only/src/CCTestDetails.cpp 
				  
			   
                   
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
                    $(LOCAL_PATH)/../unittestpp-read-only \
				  	$(LOCAL_PATH)/../unittestpp-read-only/src \
				 	$(LOCAL_PATH)/../unittestpp-read-only/src/Posix

LOCAL_CFLAGS := \
  -DUNITTEST_POSIX -DNULL=0 \
  -DUNITTEST_NO_DEFERRED_REPORTER \
  -DUNITTEST_NO_EXCEPTIONS
  
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static
            
include $(BUILD_SHARED_LIBRARY)

$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions)
